import random;
r = random;
n = 10;
m = 12;
print(str(n) + " " + str(m));
for i in range(n):
	for j in range(m):
		print('.', end="");
	print();